package test.administrator.example.com.mvptest1.framework.lce.impl.animator;

import android.view.View;

import test.administrator.example.com.mvptest1.framework.lce.ILceAnimator;

/**
 * 框架内部->提供默认策略动画(具体动画逻辑忽略->根据具体的需求决定)
 * Created by thinkpad on 2018/7/29.
 */
public class DefaultLceAnimator implements ILceAnimator {

	@Override
	public void showLoadingView(View loadingView, View contentView, View errorView) {
		AnimatorUtils.getInstance().showLoading(loadingView, contentView, errorView);
	}

	@Override
	public void showContentView(View loadingView, View contentView, View errorView) {
		AnimatorUtils.getInstance().showContent(loadingView, contentView, errorView);
	}

	@Override
	public void showErrorView(View loadingView, View contentView, View errorView) {
		AnimatorUtils.getInstance().showErrorView(loadingView, contentView, errorView);
	}

}
